package com.resume.entity

import com.baomidou.mybatisplus.annotation.*
import java.time.LocalDateTime

@TableName("resumes")
data class Resume(
    @TableId(type = IdType.AUTO)
    val id: Long? = null,
    
    val userId: Long,
    val title: String,
    val templateType: String = "standard",
    val content: String? = null,
    val previewImage: String? = null,
    val status: Int = 1,
    val isPublic: Int = 0,
    
    @TableField(fill = FieldFill.INSERT)
    val createdTime: LocalDateTime? = null,
    
    @TableField(fill = FieldFill.INSERT_UPDATE)
    val updatedTime: LocalDateTime? = null,
    
    @TableLogic
    val deleted: Int = 0
) 